<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
	font-family: 新宋体
}
.STYLE6 {color: #000000; font-size: 13px; font-family: 新宋体}
.STYLE10 {color: #000000; font-size: 13px;font-family: 新宋体 }
.STYLE19 {
	color: #344b50;
	font-size: 13px;
	font-family: 新宋体
}
.STYLE21 {
	font-size: 13px;
	color: #3b6375;
	font-family: 新宋体
}
.STYLE22 {
	font-size: 13px;
	color: #295568;
	font-family: 新宋体
}
-->
</style>

<script language="javascript">
function editRole(user_id){
	var editURL = "<%=path%>/userAction!edit?user_id="+user_id+"&date="+new Date()+"";
	var return_str=window.showModalDialog(editURL,null,"dialogWidth:700px;dialogHeight:500px;center:yes");  //showModalDialog对话框在chome浏览器不能使用
	if(return_str=="succ"){
		window.location.reload();
	}
}
</script>
</head>

<body>
<div style="height: 450px; overflow: scroll;">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
					<!-- 标题栏 -->
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1"> 管理人员基本信息列表</span></td>
              </tr>
            </table></td>
            <td><div align="right"><span class="STYLE1">
              <input type="checkbox" name="checkbox11" id="checkbox11" />
              全选      &nbsp;&nbsp;<img src="images/add.gif" width="10" height="10" /> 添加   &nbsp; <img src="images/del.gif" width="10" height="10" /> 删除    &nbsp;&nbsp;<img src="images/edit.gif" width="10" height="10" /> 编辑   &nbsp;</span><span class="STYLE1"> &nbsp;</span></div></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
      <tr>
        <td width="4%" height="20" bgcolor="d3eaef" class="STYLE10"><div align="center">
          <input type="checkbox" name="checkbox" id="checkbox" />
        </div></td>
        <td width="8%" height="25" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">用户编码</span></div></td>
        <td width="25%" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">用户名称</span></div></td>
        <td bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">用户备注</span></div></td>
        <td width="10%" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">基本操作</span></div></td>
      </tr>
      
    			  <!-- 从数据库中展示的数据 -->
      <s:iterator value="userListMap.userList" var="role" >
	      <tr >
	        <td height="25" bgcolor="#FFFFFF"><div align="center">
	          <input type="checkbox" name="checkbox2" id="checkbox2" />
	        </div></td>
	        <td height="25" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19"><s:property value="#role.user_id"/> </span></div></td>
	        <td bgcolor="#FFFFFF" class="STYLE19"><div align="left"><s:property value="#role.user_name"/></div></td>
	        <td bgcolor="#FFFFFF" class="STYLE19"><div align="left"><s:property value="#role.user_remark"/></div></td>
	        <td bgcolor="#FFFFFF"><div align="center" class="STYLE21">
	        
	        	<a href="javascript:void(0);" onclick="editRole(<s:property value="user_id"/>);">修改</a>|删除</div></td>
	      </tr>
      </s:iterator>

    </table></td>
  
  		
</table>
</div>
		<!-- 分页栏 -->
    	<div >
			${userListMap.pageTool}
		</div>
</body>
</html>
